Fix2Frac
You can use theFix2Frac
function to convert aFixed
number to aFract
number.
FUNCTION Fix2Frac (x: Fixed): Fract;
x
- The
Fixed
number to be converted to aFract
number.DESCRIPTION
TheFix2Frac
function returns theFract
number equivalent to theFixed
number x. Ifx
is greater than the maximum representableFract
number, theFix2Frac
function returns $7FFFFFFF. Ifx
is less than the negative number with the highest absolute value,Fix2Frac
returns $80000000.